package com.fs.dao;

import com.fs.pojo.Class;
import com.fs.pojo.ClassStudent;
import com.fs.vo.CourseClassVO;

import java.util.List;

public interface ClassDao extends BaseDao<Class> {
    /**
     * 通过课程暗号查询所有课程
     */
    public Class QueryAllByCourseCode(String code);

    /**
     * 通过课程id查询所有课程
     */
    public Class QueryAllByCourseId(String courseId);

    /**
     * 课程id查询班级
     * @param courseId
     * @return
     */
    List<Class> queryClassesByCourseId(String courseId);

    String insertReturnId(Class cla);

    List<CourseClassVO> qurycourseNameAndClassByTeacherId(String teacherId);

    Class queryClassByCourseIdAndstudentId(String studentId);
}
